<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<body>

ID:<span th:text="${user.id}"></span><br/>
userName:[[${user.userName}]]<br/>
password:[[${user.password}]]<br/>

通过object对象的形式:
<span th:object="${user}">
    id:<span th:text="*{id}"></span>
    userName:<span th:text="*{userName}"></span>
    password:<span th:text="*{password}"></span>
</span>

<h1>链接</h1>
1、无参数的<br/>
<a th:href="@{/home}">无参数跳转</a><br/>
2、有参数的<br/>
<a th:href="@{/home(userName='张三',password='123456')}">有参数跳转</a><br/>

3、从变量中拿到数据作为参数<br/>
<a th:href="@{/home(userName=${user.userName},password=${user.password})}">有参数跳转</a>
</body>

</html>